<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    用户姓名:<label>
    <input th:id="${user.name}" th:name="${user.name}" th:value="${user.name}"/>
</label>
    <br/>
    用户年龄:<label>
    <input th:value="${user.age}"/>
</label>
    <br/>
    用户电话:<label>
    <input th:value="${user.phone}"/>
</label>
    <br/>
    用户生日:<label>
    <input th:value="${user.birthday}"/>
</label>
    <br/>
    用户生日:<label>
    <input th:value="${#dates.format(user.birthday,'yyyy-MM-dd')}"/>
</label><!--时间格式转换-->
    <br/>
</div>
</body>
</html>